package cn.com.hhrcw.block.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * @Description:
 * @Author: lixingxing
 * @Date: 2020-10-22
 * @Version: V1.0
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
public class BlockVO implements Serializable {

    /**
     *
     */
    private String id;

    /**
     * 父id
     */
    @Excel(name = "父id")
    private String parentId;

    /**
     * 区块名称
     */
    @Excel(name = "区块名称")
    private String name;

    /**
     * 区块类型
     */
    @Excel(name = "区块类型")
    @Dict(dicCode = "block_code")
    private String type;

    /**
     * 区块编码
     */
    private String code;

    /**
     * 排序
     */
    @Excel(name = "排序")
    private Integer sequence;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @Excel(name = "创建时间", format = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /**
     *
     */
    private String createBy;

    private List<BlockVO> children;

}
